﻿@inherits System.Web.Mvc.WebViewPage<Pikapika.Models.Novel>

@{
    ViewBag.Title = "Novel - Delete - " + Model.Name;
    
}

    <h3>Are you sure you want to delete this?</h3>
    <fieldset>
        <legend>Fields</legend>
        
        <div class="display-label">Id</div>
        <div class="display-field">@Model.Id</div>
        
        <div class="display-label">Name</div>
        <div class="display-field">@Model.Name</div>
        
        <div class="display-label">Description</div>
        <div class="display-field">@Model.Description</div>
        
        <div class="display-label">PublisherId</div>
        <div class="display-field">@Model.PublisherId ( @Model.Publisher.Name )</div>
        
        <div class="display-label">Author</div>
        <div class="display-field">@Model.Author</div>
        
        <div class="display-label">ImageUrl</div>
        <div class="display-field">@Model.ImageUrl</div>
        
        <div class="display-label">RatingPoints</div>
        <div class="display-field">@Model.RatingPoints</div>
        
        <div class="display-label">RatingCount</div>
        <div class="display-field">@Model.RatingCount</div>
        
        <div class="display-label">UpdatedDate</div>
        <div class="display-field">@String.Format("{0:g}", Model.UpdatedDate)</div>
        
    </fieldset>
    @using (Html.BeginForm()) {
        @Html.ValidationSummary(true)
        <p>
			@Html.Hidden("listPageKeyName", "publisherId")
			@Html.Hidden("listPageKeyValue", Model.Publisher.Id)
            <input type="submit" value="Delete" /> |
            @Html.ActionLink("Back to List", "Index", new { publisherId = Model.Publisher.Id })
        </p>
    }


